package decoratorPattern.demo1;

import decoratorPattern.demo1.coffee.LongBlack;
import decoratorPattern.demo1.decorator.Chololate;

/**
 * @author： pang-yun
 * @date： 2021-10-25 13:32
 * 功能目的 ：用于
 */


public class CoffeeBar {
    public static void main(String[] args) {
        LongBlack longBlack = new LongBlack();
        System.out.println(longBlack.cost());

        Chololate chololate = new Chololate(longBlack);
        System.out.println(chololate.getDes() +" "+ chololate.cost());
    }
}
